package com.ts.manage.course.client;

import com.ts.framework.domain.cms.CmsPage;
import com.ts.framework.domain.cms.response.CmsPageResult;
import com.ts.framework.domain.cms.response.CmsPostPageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用客户端
 */
@FeignClient(value = "ts-service-manage-cms")
public interface CmsPageClient {

    /**
     * 添加修改页面信息
     * @param cmsPage
     * @return
     */
    @PostMapping("/cms/page/save")
    public CmsPageResult saveCmsPage(@RequestBody CmsPage cmsPage);

    /**
     * 课程发布
     * @param cmsPage
     * @return
     */
    @PostMapping("/cms/page/postPageQuick")
    public CmsPostPageResult postPageQuick(@RequestBody CmsPage cmsPage);
}